{% extends 'base.html' %}
{% load static %}
{% load common_extras %}
{% block title %}画廊{% endblock %}
{% block content %}
     <div id="main-content">
            	<div id="gallery-page">
            		<h1>画廊</h1>

                    <span class="main-border"></span>

                    <ul id="filter">
                    	<li>Filter:</li>
                        <li><a href="#all" title="">All</a></li>
                        <li><a href="#movies" title="" rel="movies">Movies</a></li>
                        <li><a href="#games" title="" rel="games">Games</a></li>
                        <li><a href="#fashion" title="" rel="fashion">Fashion</a></li>
                        <li><a href="#science" title="" rel="science">Science</a></li>
                    </ul>
                    <div id="gallery-wrapper">

                    	<ul id="gallery">
                            {% for list in paginator.object_list %}
                        	<li class="gallery-item games fashion science movies"><img src={{  list.photo.url  }} height="126" width="177" alt="gallery image" />{{  list.title  }}</li>
                            {% endfor %}
                        </ul>
                        <div class="clear"></div>
						<div class="Pagination">
                            <ul class="pageNav">
{#                                {% if paginator.has_previous %}#}
{#                                    <li><a href="">上一页</a></li>#}
{#                                {% endif %}#}
{#                                {% for page in pageInfo.paginator.page_range %}#}
{#                                    {% if pageInfo.number == page %}#}
{#                                        <li><a href="javascript:;" >{{page}}</a></li>#}
{#                                    {% else %}#}
{#                                        <li><a href="{% url 'album:album_user' id page %}" >{{page}}</a></li>#}
{#                                    {% endif %}#}
{#                                {% endfor %}#}
{#                                {% if pageInfo.has_next %}#}
{#                                    <li><a href="{% url 'album:album_user' id page %}" >下一页</a></li>#}
{#                                {% endif %}#}
                            </ul>
                        </div>
                 <div class="clear"></div>
                    </div><!--END gallery-wrapper-->
				</div><!--END gallery-page-->
            </div><!--END main-content-->
{% endblock %}